<template>
  <input :value="text" @input="(event) => (text = event.target.value)" />
  <!--推荐绑定-->
  <input v-model="text">
</template>

<script setup>
import { ref, reactive, computed } from "vue";

const text = ref("Vue.js");

</script>
